package com.learning.spring.bean.annotation.config.service.impl;

import com.learning.spring.bean.annotation.config.service.IAddressService;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Repository;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;

/**
 * ClassName: AddressServiceImpl
 * Description:
 * 注解 @Lazy 必须同时标注在属性以及目标Bean上（标注在目标Bean上）
 * Date: 2020/8/17 17:35 【需求编号】
 *
 * @author Sam Sho
 * @version V1.0.0
 */
@Lazy
@Repository
public class AddressServiceImpl implements IAddressService {

    @PostConstruct
    public void init(){

    }

    @PreDestroy
    public void destroy(){

    }
}
